package messages;

import java.util.Date;

import users.User;

public class Message implements IMessage {
	private String Text = "";
	private Date Date = null;
	private User Author = null;
	private int Type = 0;
	
	public Message ()
	{	}

	public Message (String Text, Date Date, User Author, int Type)
	{
		this.Author = Author;
		this.Date = Date;
		this.Text = Text;
		this.Type = Type;
	}

	public User getAuthor() {
		return Author;
	}
	
	public Date getDate() {
		return Date;
	}

	public String getText() {
		return Text;
	}

	public int getType() {
		return Type;
	}

	public void setAuthor(User author) {
		Author = author;
	}

	public void setDate(Date date) {
		Date = date;
	}

	public void setText(String text) {
		Text = text;
	}

	public void setType(int type) {
		Type = type;
	}
	
}
